﻿using HardcoreGame.Content.Projectiles.Melee;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace HardcoreGame.Content.Items.Weapons.Melee
{
    public class FireEnchantedSword : ModItem
    {
        public override void SetDefaults()
        {
            Item.autoReuse = true;
            Item.rare = ItemRarityID.Green;
            Item.UseSound = SoundID.Item1;
            Item.useStyle = ItemUseStyleID.Swing;
            Item.damage = 23;
            Item.useAnimation = 21;
            Item.useTime = 45;
            Item.scale = 1.1f;
            Item.width = 30;
            Item.height = 30;
            Item.shoot = ModContent.ProjectileType<FireEnchantedBeam>();
            Item.shootSpeed = 9.5f;
            Item.knockBack = 4.25f;
            Item.DamageType = DamageClass.Melee;
            Item.value = Item.sellPrice(0, 3);
        }
        public override void AddRecipes()
        {
            CreateRecipe()
            .AddIngredient(ItemID.EnchantedSword, 1)
            .AddIngredient(ItemID.Torch, 100)
            .AddTile(TileID.Anvils)
            .Register();
        }
    }
}
